#pragma once

#include "BaseInc.h"

class CAuxLock
{
public:
	CAuxLock(HANDLE hMutex)
	{
		m_hMutex = hMutex;
	}
	void Lock()
	{
		DWORD d = WaitForSingleObject(m_hMutex, INFINITE); 


	}

	HANDLE m_hMutex;	
	~CAuxLock()
	{
		::ReleaseMutex(m_hMutex); 
	}
};